export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "editBtn": true,
  "delBtn": true,
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  "column": [
    // {
    //   "type": "input",
    //   "label": "新闻分类",
    //   "prop": "type",
    //   "span": 12,
    //   hide: true,
    // },	  
    {
      "type": "input",
      "label": "业务标识 默认 01 ",
      "prop": "code",
      "span": 12,
      addDisplay: false,
      editDisplay: false,
      hide: true,
    },
    {
      type: 'input',
      label: '标题',
      prop: 'title',
      span: 12,
      'search': true,
      rules: [{
        required: true,
        message: '请输入标题',
        trigger: 'blur'
      }]
    },
    {
      type: 'input',
      label: '子标题',
      prop: 'subTitle',
      span: 12
    },
    {
      type: 'input',
      label: '简介',
      prop: 'intro',
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '作者',
      prop: 'editor',
      span: 12,
      hide: true,
    },
    // {
    //   type: 'input',
    //   label: '关键字',
    //   prop: 'keyworks',
    //   hide: true,
    //   span: 12
    // },
    // {
    //   type: 'input',
    //   label: '标签',
    //   prop: 'tag',
    //   span: 12,
    //   hide:true
    // },
    // {
    //   type: 'input',
    //   label: '来源',
    //   prop: 'source',
    //   span: 12
    // },
    // {
    //   type: 'input',
    //   label: '来源地址',
    //   prop: 'sourceUrl',
    //   hide: true,
    //   span: 12
    // },
    {
      type: 'select',
      label: '置顶',
      prop: 'top',
      span: 12,
      dicData: [{
        label: '是',
        value: '1'
      }, {
        label: '否',
        value: '0'
      }]
    // }, {
    //   "type": "input",
    //   "label": "发布时间",
    //   "prop": "releaseTime",
    //   "span": 12
    },	  {
      "type": "input",
      "label": "发布人",
      "prop": "createRealname",
      addDisplay: false,
      editDisplay: false,
      "span": 12
    },	  {
      "type": "datetime",
      "label": "创建时间",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      "prop": "createTime",
      "span": 12
    },	  {
      "type": "input",
      "label": "浏览量",
      addDisplay: false,
      editDisplay: false,
      "prop": "pv",
      "span": 12
    },
    {
      type: 'select',
      label: '状态',
      prop: 'status',
      span: 12,
      dicUrl: '/admin/dict/type/news_status',
      'search': true,
    },
    {
      type: 'select',
      label: '轮播显示',
      prop: 'showBanner',
      span: 12,
      dicData: [{
        label: '是',
        value: '1'
      }, {
        label: '否',
        value: '0'
      }]
    },
    {
      label: '轮播图',
      prop: 'banner',
      hide: true,
      loadText: '附件上传中，请稍等',
      type: 'upload',
      width: 140,
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: '/admin/sys-file/upload'
    },
    {
      label: '附件',
      prop: 'files',
      type: 'upload',
      span: 24,
      hide: true,
      accept: [],
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      listType: 'file',
      action: '/admin/sys-file/upload'
    },
    {
      label: "内容",
      prop: "content",
      type: "ueditor",
      hide: true,
      component: "avueUeditor",
      params: {
        options: {
          //普通图片上传
          action: "/admin/sys-file/upload",
          customConfig: {
            lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3'],
            menus: ['head', 'bold', 'fontSize', 'fontName', 'italic', 'underline', 'foreColor', 'backColor', 'link', 'justify', 'quote', 'emoticon', 'image', 'table', 'video', 'code', 'undo', 'redo']
          },//wangEditor编辑的配置
          props: {
            res: "data",
            url: 'url'
          },
        }
      },
      span: 24
    },
  ]
}
